﻿@using PmpNetwork.Extensions
@model PmpNetwork.Models.CategoryTreePart
@{
    Style.Require("jQueryUI_Orchard");
    Script.Require("jQuery").AtHead();
    Script.Require("Migrate").AtHead();

    Script.Require("PmpNetwork.WikiArticle.Edit");
    Script.Require("CKEditor");
}
<fieldset>
    <div class="editor-label">@Html.LabelFor(x => x.ContentMode, T("Content Mode"))</div>
    <div class="editor-field">
        <select id="ContentMode" name="ContentMode">
            @foreach (var key in Constants.CategoryTreeModes.Keys)
            {
                <option value="@key" @(Model.ContentMode == key ? "selected='selected'" : "")>@Constants.CategoryTreeModes[key]</option>
            }
        </select>
    </div>
    <div class="editor-label">@Html.LabelFor(x => x.WidthCss, T("Width (CSS)"))</div>
    <div class="editor-field">
        @Html.TextBoxFor(x => x.WidthCss)
        @Html.ValidationMessageFor(x => x.WidthCss)
    </div>
    
    <div class="editor-label">@Html.LabelFor(x => x.HeightCss, T("Height (CSS)"))</div>
    <div class="editor-field">
        @Html.TextBoxFor(x => x.HeightCss)
        @Html.ValidationMessageFor(x => x.HeightCss)
    </div>
    
    <div class="editor-label">@Html.LabelFor(x => x.OverflowCss, T("Overflow (CSS)"))</div>
    <div class="editor-field">
        @Html.TextBoxFor(x => x.OverflowCss)
        @Html.ValidationMessageFor(x => x.OverflowCss)
    </div>

    <div class="editor-label">@Html.LabelFor(x => x.MaxLevel, T("Max Level"))</div>
    <div class="editor-field">
        @Html.TextBoxFor(x => x.MaxLevel)
        @Html.ValidationMessageFor(x => x.MaxLevel)
    </div>
    
</fieldset>